package com.hoshiicloud.stock;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

@Configuration
@SpringBootApplication
@EnableEurekaClient
@EnableCircuitBreaker
@EnableFeignClients
@Slf4j
public class HoshiiCloudWarehouseApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(HoshiiCloudWarehouseApplication.class, args);
            System.out.println("服务hoshiiCloudWarehouse启动");
        }catch (Exception e){
            log.error("服务异常:",e);
        }

    }

}
